import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import user from './user'

// 长久储存
import VuexPersistence  from  'vuex-persist'
var vueLocal = new VuexPersistence({
  storage:window.localStorage
})

export default new Vuex.Store({
  state: {

  },
  getters: {
  },
  mutations: {
  },
  actions: {
  },
  modules: {
    user
  },
  plugins:[vueLocal.plugin]
})
